package com.gmadmin.entity.vo.menu;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author zhangliang
 * @version 1.0
 * @date 2021/12/31 12:52
 * 返回导航菜单路由
 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class NavMenuVo {

    @ApiModelProperty(value = "菜单名称")
    private String name;

    @ApiModelProperty(value = "路由地址")
    private String path;




    @ApiModelProperty(value = "转发地址")
    private String redirect;

    @ApiModelProperty(value = "组件地址")
    private String component;

    /**
     * Layout 布局容器  ParentView 父级视图
     */
    @ApiModelProperty(value = "布局容器")
    private String layout;


    @ApiModelProperty(value = "路由meta")
    private MenuMetaVo meta;

    @ApiModelProperty(value = "子路由")
    private List<NavMenuVo> children;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getRedirect() {
        return redirect;
    }

    public void setRedirect(String redirect) {
        this.redirect = redirect;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }


    public MenuMetaVo getMeta() {
        return meta;
    }

    public void setMeta(MenuMetaVo meta) {
        this.meta = meta;
    }

    public List<NavMenuVo> getChildren() {
        return children;
    }

    public void setChildren(List<NavMenuVo> children) {
        this.children = children;
    }

    public String getLayout() {
        return layout;
    }

    public void setLayout(String layout) {
        this.layout = layout;
    }
}
